class GameList {
  int status;
  List<Game> game_list;

  static GameList fromMap(Map<String, dynamic> map) {
    GameList temp = new GameList();
    temp.status = map['status'];
    temp.game_list = Game.fromMapList(map['game_list']);
    return temp;
  }

  static List<GameList> fromMapList(dynamic mapList) {
    List<GameList> list = new List(mapList.length);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }
}

class Game {
  String app_name;
  String game_desc;
  String game_icon_url;
  String game_name_en;
  String game_name_zh;
  String ico_md5;
  String search;
  String tag;
  String app_download_url;
  String app_version;
  int client_type;
  int game_id;
  int game_type;
  int show_order;
  int dispatch_type;
  int routeID;
  int app_download_open;
  List<String> app_name_list;
  List<String> login_app;

  static Game fromMap(Map<String, dynamic> map) {
    Game game_listListBean = new Game();
    game_listListBean.app_name = map['app_name'];
    game_listListBean.game_desc = map['game_desc'];
    game_listListBean.game_icon_url = map['game_icon_url'];
    game_listListBean.game_name_en = map['game_name_en'];
    game_listListBean.game_name_zh = map['game_name_zh'];
    game_listListBean.ico_md5 = map['ico_md5'];
    game_listListBean.search = map['search'];
    game_listListBean.tag = map['tag'];
    game_listListBean.app_download_url = map['app_download_url'];
    game_listListBean.app_version = map['app_version'];
    game_listListBean.client_type = map['client_type'];
    game_listListBean.game_id = map['game_id'];
    game_listListBean.game_type = map['game_type'];
    game_listListBean.show_order = map['show_order'];
    game_listListBean.dispatch_type = map['dispatch_type'];
    game_listListBean.routeID = map['routeID'];
    game_listListBean.app_download_open = map['app_download_open'];

    List<dynamic> dynamicList0 = map['app_name_list'];
    game_listListBean.app_name_list = new List();
    game_listListBean.app_name_list
        .addAll(dynamicList0.map((o) => o.toString()));

    List<dynamic> dynamicList1 = map['login_app'];
    game_listListBean.login_app = new List();
    game_listListBean.login_app.addAll(dynamicList1.map((o) => o.toString()));

    return game_listListBean;
  }

  static List<Game> fromMapList(dynamic mapList) {
    List<Game> list = new List(mapList.length);
    for (int i = 0; i < mapList.length; i++) {
      list[i] = fromMap(mapList[i]);
    }
    return list;
  }
}
